home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2002 #4 / K-CD-4-2002.ISO / Empire Earth / EEDemo.exe / Disk1 / Random Map Scripts / Continental.rmv next >
Encoding:
Text File  |  2001-09-27  |  6.8 KB  |  201 lines

  1. //////////////////////////////////////////////////////////////////////
  2. //
  3. // Outland.rmv
  4. //
  5. // Input file for the Continental map type.
  6. //
  7. // Copyright (c) 1998, Stainless Steel Studios, Inc. All rights reserved.
  8. // PROPRIETARY and CONFIDENTIAL.
  9. //
  10. // $Author: Scott Marison $
  11. // $Date: 7/27/01 1:49p $
  12. // $Modified: Richard Bishop
  13. // $Date: 7/27/01 1:49p $Version: 1.0
  14. // $Working Versions:
  15. // $    Tiny - 2 Players
  16. // $     Small - 2, 3, 4 Players
  17. //////////////////////////////////////////////////////////////////////
  18.  
  19.  
  20.  
  21. //////////////////////////////////////////////////////////////////////
  22. // Define the map generator we will use
  23. //////////////////////////////////////////////////////////////////////
  24.  
  25. UseMapGenerator        "Default"
  26. StringTableID        27000
  27.  
  28.  
  29. //////////////////////////////////////////////////////////////////////
  30. // Files we always include
  31. //////////////////////////////////////////////////////////////////////
  32.  
  33. #include "Common\Map Climate"
  34. #include "Common\Common Conditions"
  35. #include "Common\Common Terrain Painting"
  36. #include "Common\Tourney Common Initial Units"
  37. #include "Common\Common Forests"
  38.  
  39. //////////////////////////////////////////////////////////////////////
  40. // initialize some defintions. it is possible that an included file 
  41. // might redefine these.
  42. //////////////////////////////////////////////////////////////////////
  43. #define        (kShallowsElevation, -1)
  44. #define        (kShallowsWidth, 4)
  45. #define        (kMaxShallowConnectionsPerPlayer, 1)
  46. #define        (kGenerateShallows, false)
  47.  
  48.  
  49. //////////////////////////////////////////////////////////////////////
  50. // Files we include based upon map size - these files will define
  51. // everything we need to set the random map attributes for continental 
  52. // random maps.
  53. //////////////////////////////////////////////////////////////////////
  54. #if        IsTinyMap
  55. #include "Continental\Continental Tiny"
  56. #elif    IsSmallMap
  57. #include "Continental\Continental Small"
  58. #elif    IsMediumMap
  59. #include "Continental\Continental Medium"
  60. #elif    IsLargeMap
  61. #include "Continental\Continental Large"
  62. #elif    IsHugeMap
  63. #include "Continental\Continental Huge"
  64. #elif    IsGiganticMap
  65. #include "Continental\Continental Gigantic"
  66. #endif
  67.  
  68.  
  69. //////////////////////////////////////////////////////////////////////
  70. // Attributes we set
  71. //////////////////////////////////////////////////////////////////////
  72.  
  73. //////////////////////////////////////////////////////////////////////
  74. // map elevation attributes
  75. MinIntElevation                    kMinIntElevation
  76. MaxIntElevation                    kMaxIntElevation
  77. InitialElevation                0
  78. FlatElevation                    0
  79. ElevationScale                    kElevationScale
  80. HeightMapChaos                    kHeightMapChaos
  81.  
  82.  
  83. //////////////////////////////////////////////////////////////////////
  84. // land/water attributes
  85. PercentLand                        kPercentLand
  86. LandElevationThreshold            0
  87. WaterBorder                        kWaterBorder
  88. RiverWidth                        0
  89. TeamGrowth                        false
  90.  
  91.  
  92. //////////////////////////////////////////////////////////////////////
  93. // shallows attributes
  94. CoastalToDeeperWaterPercentage            1.0
  95. ShallowsElevation                kShallowsElevation
  96. ShallowsWidth                    kShallowsWidth
  97. MaxShallowConnectionsPerPlayer            kMaxShallowConnectionsPerPlayer
  98. GenerateShallows                kGenerateShallows
  99.  
  100.  
  101. //////////////////////////////////////////////////////////////////////
  102. // player attributes
  103. PlayerInnerRadius                kPlayerInnerRadius
  104. PlayerOuterRadius                kPlayerOuterRadius
  105. PlayerPercentFlat                kPlayerPercentFlat
  106. PlayerTreePercentage            kPlayerTreePercentage
  107. PlayerLandChaos                    kPlayerLandChaos
  108. PlayerLandClumps                kPlayerLandClumps
  109. PlayerFlatChaos                    kPlayerFlatChaos
  110. PlayerFlatClumps                kPlayerFlatClumps
  111. MaxAngleBetweenTeamMembers        kMaxAngleBetweenTeamMembers
  112.  
  113.  
  114. //////////////////////////////////////////////////////////////////////
  115. // general pushing attributes
  116. MinimumStartPositionToMapEdge    kMinimumStartPositionToMapEdge
  117. OuterPushFromMapCenter            kOuterPushFromMapCenter
  118. InnerPushFromMapCenter            kInnerPushFromMapCenter
  119.  
  120.  
  121. //////////////////////////////////////////////////////////////////////
  122. // general neutral attributes
  123. NeutralInnerRadius                kNeutralInnerRadius
  124. NeutralOuterRadius                kNeutralOuterRadius
  125.  
  126.  
  127. //////////////////////////////////////////////////////////////////////
  128. // inner neutral attributes
  129. NumInnerNeutrals                kNumInnerNeutrals
  130. InnerNeutralPercentLand            kInnerNeutralPercentLand
  131. InnerNeutralPercentFlat            kInnerNeutralPercentFlat
  132. InnerNeutralTreePercentage        kInnerNeutralTreePercentage
  133. InnerNeutralLandChaos            kInnerNeutralLandChaos
  134. InnerNeutralLandClumps            kInnerNeutralLandClumps
  135. InnerNeutralFlatChaos            kInnerNeutralFlatChaos
  136. InnerNeutralFlatClumps            kInnerNeutralFlatClumps
  137.  
  138.  
  139. //////////////////////////////////////////////////////////////////////
  140. // outer neutral attributes
  141. NumOuterNeutrals                kNumOuterNeutrals
  142. OuterNeutralPercentLand            kOuterNeutralPercentLand
  143. OuterNeutralPercentFlat            kOuterNeutralPercentFlat
  144. OuterNeutralTreePercentage        kOuterNeutralTreePercentage
  145. OuterNeutralLandChaos            kOuterNeutralLandChaos
  146. OuterNeutralLandClumps            kOuterNeutralLandClumps
  147. OuterNeutralFlatChaos            kOuterNeutralFlatChaos
  148. OuterNeutralFlatClumps            kOuterNeutralFlatClumps
  149.  
  150.  
  151. //////////////////////////////////////////////////////////////////////
  152. // resource attributes
  153. MaxResourceElevation            kMaxResourceElevation
  154. ResourceToEdgeDistance            kResourceToEdgeDistance    
  155. ResourceToWaterDistance            kResourceToWaterDistance    
  156.  
  157. ResourcePerPlayer                (Animal,        kAnimalPerPlayer)
  158. ResourcePerNeutralLand            (Animal,        kAnimalPerNeutral)
  159.                                             
  160. ResourcePerPlayer                (Berry,            kBerryPerPlayer)
  161. ResourcePerNeutralLand            (Berry,            kBerryPerNeutral)
  162.                                             
  163. ResourcePerPlayer                (Fish,            kFishPerPlayer)
  164. ResourcePerNeutralLand            (Fish,            kFishPerNeutral)
  165.                                             
  166. ResourcePerPlayer                (Gold,            kGoldPerPlayer)
  167. ResourcePerNeutralLand            (Gold,            kGoldPerNeutral)
  168.                                             
  169. ResourcePerPlayer                (Steel,            kSteelPerPlayer)
  170. ResourcePerNeutralLand            (Steel,            kSteelPerNeutral)
  171.                                             
  172. ResourcePerPlayer                (Stone,            kStonePerPlayer)
  173. ResourcePerNeutralLand            (Stone,            kStonePerNeutral)
  174.                                             
  175. ResourcePerPlayer                (Tree,            kTreePerPlayer)
  176. ResourcePerNeutralLand            (Tree,            kTreePerNeutral)
  177.                                             
  178.  
  179. //////////////////////////////////////////////////////////////////////
  180. // forest attributes
  181. ForestFreeRadius                kForestFreeRadius
  182. ForestsPerPlayer                kForestsPerPlayer
  183. ForestChaosLevel                kForestChaosLevel    
  184. MaxClumpsPerForest                kMaxClumpsPerForest
  185. MaximumTreesPerClump            10000
  186. MaxTreeLoopCount                200
  187.  
  188.  
  189. //////////////////////////////////////////////////////////////////////
  190. // misc. attributes
  191. ConvergentSampleSize            32
  192. ConvergentThreshold                1.0
  193. MaxIterationsClumpGrowth        200                
  194. MaxLoopCount                    300
  195.  
  196.  
  197. //////////////////////////////////////////////////////////////////////
  198. // debug flags - for debugging use only
  199. FilterHeightMap                    false
  200. TestingLandDistribution            false
  201.